﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Bankomat.Business
{
    class Bankomat : IBankomat
    {
        bool logStatus;

        /// <summary>
        /// Constructor
        /// </summary>
        public Bankomat()
        {
            logStatus = false;
        }

        /// <summary>
        /// Gets whether a user is loggedd in or not
        /// </summary>
        public bool IsLogged
        {
            get { return logStatus; }
        }

        /// <summary>
        /// Logs in the specified user
        /// </summary>
        /// <param name="token">The users token</param>
        /// <returns>True if login was successful</returns>
        public bool LogIn(string token)
        {
            return logStatus = true;
        }

        /// <summary>
        /// Logs out the specified user
        /// </summary>
        /// <returns></returns>
        public bool LogOut()
        {
            return logStatus = false;
        }
    }

    
}
